package day02;

public class Demo01 {
    public static void main(String[] args) {
        Foo foo = new Foo();
    }
}

class Foo{
    int x = 5; //堆
    int y = 6; //堆
    public void test(){
        int n = 5; //栈 没有线程安全问题
    }
}